//============================================================
//write by bxl at 2019-09-10 18:09:27
//============================================================

using BCCommon.CRMEnums;
using BCCommon.Extensions;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.CRM.CustomerReceptionRecord
{
    /// <summary>
    /// 客户接待记录
    /// </summary>
    public class CustomerReceptionRecordDto
    {
        /// <summary>
        /// 客户接待记录Id
        /// </summary>
        public long CustomerReceptionRecordId { get; set; }
        /// <summary>
        /// 公司Id
        /// </summary>
        public int? CompanyId { get; set; }
        /// <summary>
        /// 到访时间
        /// </summary> 
        public DateTime ArrivalTime { get; set; }
        /// <summary>
        /// 离去时间
        /// </summary> 
        public DateTime ExitTime { get; set; }
        /// <summary>
        /// 接待类型
        /// </summary> 
        public CRMReceptionType ReceptionType { get; set; }
        /// <summary>
        /// 接待类型
        /// </summary>
        public string ReceptionTypeStr => ReceptionType.GetDescriptionString();
        /// <summary>
        /// 接待次数类型
        /// </summary> 
        public CRMReceptionTimesType ReceptionTimesType { get; set; }
        /// <summary>
        /// 接待次数类型
        /// </summary>
        public string ReceptionTimesTypeStr => this.ReceptionTimesType.GetDescriptionString();
        /// <summary>
        /// 客户姓名
        /// </summary> 
        public string UserName { get; set; }
        /// <summary>
        /// 客户电话
        /// </summary> 
        public string Phone { get; set; }
        /// <summary>
        /// 客户邮件
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 客户性别
        /// </summary> 
        public CRMSex Sex { get; set; }
        /// <summary>
        /// 客户性别
        /// </summary>
        public string SexStr => this.Sex.GetDescriptionString();
        /// <summary>
        /// 客户类型
        /// </summary> 
        public CRMCustomerType CustomerType { get; set; }
        /// <summary>
        /// 客户类型r  '非客户、潜在客户、目标客户、现实客户、流失客户
        /// </summary>
        public string CustomerTypeStr => this.CustomerType.GetDescriptionString();
        /// <summary>
        /// 客户级别
        /// </summary> 
        public CRMCustomerLevel CustomerLevel { get; set; }

        /// <summary>
        /// 客户级别
        /// </summary>
        public string CustomerLevelStr => this.CustomerLevel.GetDescriptionString();
        /// <summary>
        /// 预计订车时间
        /// </summary>
        public DateTime PreestimateBookTime { get; set; }
        /// <summary>
        /// 省份编码
        /// </summary> 
        public string ProvinceCode { get; set; }
        /// <summary>
        /// 省/州名称
        /// </summary> 
        public string ProvinceName { get; set; }
        /// <summary>
        /// 市Id
        /// </summary> 
        public string CityCode { get; set; }
        /// <summary>
        /// 市名称
        /// </summary> 
        public string CityName { get; set; }
        /// <summary>
        /// 县Id
        /// </summary> 
        public string CountyCode { get; set; }
        /// <summary>
        /// 县名称
        /// </summary> 
        public string CountyName { get; set; }
        /// <summary>
        /// 客户地址
        /// </summary> 
        public string Address { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 接待人Id
        /// </summary> 
        public long AdminId { get; set; }
        /// <summary>
        /// 接待人姓名
        /// </summary> 
        public string AdminFullName { get; set; }
        /// <summary>
        /// 已归档
        /// </summary> 
        public bool IsArchive { get; set; }
        /// <summary>
        /// 归档时间
        /// </summary>
        public DateTime ArchiveTime { get; set; }

    }
}
